<!DOCTYPE html>
<html>
<head>
	<title>系统配置</title>
	<meta charset="utf-8">
	<link rel="shortcut icon" href="favicon.ico">
	<link href="__STATIC__/css/bootstrap.min.css?v=3.3.6" rel="stylesheet">
    <link href="__STATIC__/css/font-awesome.css" rel="stylesheet">
    <link href="__STATIC__/css/plugins/iCheck/custom.css" rel="stylesheet">
    <link href="__STATIC__/css/animate.css" rel="stylesheet">
    <link href="__STATIC__/css/style.css?v=4.1.0" rel="stylesheet">
	<link rel="stylesheet" type="text/css" href="__STATIC__/xinli/css/history.css">
	<style type="text/css">
	.memu>span>a{
			color: yellow;
		}
	.middle-line1-content{
	        	width: 99%;
		background-color: rgba(182, 171, 171, 0.56);
		font-size: 12px;
		border: 1px solid rgba(128, 128, 128, 0.72);
		border-radius: 5px;
		margin: 0 auto;
		}
	.middle-line1-content>div{
		margin-top: 3px;
    		padding: 3px 20px;
		}

	.stem>span{
		margin-left: 10px;
		color: black;
		cursor: pointer;
	}

	.stemone{
		width: 99%;
		margin: 0 auto;
		background: rgb(224,139,46);
		margin-top: 5px;
		padding: 3px 0;
		border: 1px solid rgb(224,139,46);
		border-radius: 4px 4px 0 0;
	}

	.stemone>span{
		color: yellow;
		margin-left: 10px;
		font-size: 12px;
		cursor: pointer;
	}

	.stemtwo{
		width: 99%;
		margin: 0 auto;
		padding: 100px 0;
		background: rgb(240,240,240);
		text-align: center;
		color: black;
		font-weight: bold;
		border: 1px solid rgb(214,214,214);
		border-radius: 0 0 4px 4px;
	}

	.stemtwo>span:last-child{
		border: 2px solid rgb(3, 169, 244);
    		padding: 3px 15px;
    		border-radius: 6px;
    		cursor: pointer;
	}

	.stemthree{
		width: 99%;
		margin: 0 auto;
		padding: 10px 0;
		background: rgb(240,240,240);
		text-align: center;
		color: black;
		font-weight: bold;
		border: 1px solid rgb(214,214,214);
		border-radius: 0 0 4px 4px;
	}

	.yes{
		border: 2px solid rgb(3, 169, 244);
    		padding: 3px 15px;
    		border-radius: 6px;
    		cursor: pointer;
	}

	.stemfour{
		width: 99%;
		margin: 0 auto;
		background: rgb(224,139,46);
		margin-top: 5px;
		padding: 3px 0;
		border: 1px solid rgb(224,139,46);
		border-radius: 4px 4px 0 0;
		color: white;
	}

	.one1{
		float: left;
		width: 50%;
		padding: 0 5%;
	}

	.one1>div{
    		width: 100%;
    		text-align: right;
    		margin-top: 10px;
	}

	.one2{
		float: left;
		width: 50%;
		padding: 0 5%;
	}

	.one2>div{
    		width: 100%;
    		text-align: left;
    		margin-top: 10px;
	}

	.changeall{
		margin-top: 5px;
   		 text-align: center;
	}

	.changeall>div{
		margin-top: 3px;
		color: black;
		font-size: 14px
	}

	.changeall>div>input{
		width: 300px;
		border: 1px solid silver;
    		border-radius: 3px;
	}


	</style>
</head>
<body>
	<div>
		<div class="heads">
			<div class="poly">保利</div>
			<div style="clear: both;"></div>

		<div style="position: relative;width: 80%;float: right;">
			<div class="arrow-left"></div>
			<div class="memus" style="height: 30px;">
				<div class="bevel"></div>
				<div style="clear: both;"></div>
		{switch name=":session('usertype')"}
    {case value="1"}
				<span><a href="{:url('admin/home/plate')}">开封盘</a></span>
				<span><a href="{:url('admin/home/oddstema')}">赔率设置</a></span>
				<span><a href="{:url('admin/Single/injection')}">即时注单</a></span>
				<span><a href="{:url('admin/home/replenishment')}">补货</a></span>
				<span><a href="{:url('admin/home/director')}">总监</a></span>
				<span><a href="{:url('admin/home/bigshareholders')}">大股东</a></span>
				<span><a href="{:url('admin/home/shareholders')}">股东</a></span>
				<span><a href="{:url('admin/home/bigangent')}">总代理</a></span>
				<span><a href="{:url('admin/home/angent')}">代理</a></span>
				<span><a href="{:url('admin/home/members')}">会员</a></span>
				<!-- <span><a href="{:url('admin/home/Traders')}">操盘员</a></span> -->
				<span><a href="{:url('admin/home/system')}">系统配置</a></span>
				<span><a href="{:url('admin/home/Notice')}">公告</a></span>
				<span><a href="{:url('admin/home/notecheck')}">注单查询</a></span>
				<span><a href="{:url('admin/home/red')}">报表</a></span>
				<span><a href="{:url('admin/home/fot')}">客服</a></span>
				<span><a href="{:url('admin/home/Onlinepersonnel')}">在线人员</a></span>
				<span><a href="{:url('admin/login/logout')}">登出</a></span>
    {/case}
    {case value="2"}
    		{switch name=":session('roots')"}
    		 {case value="0"}
				<span><a href="{:url('admin/Single/injection')}">即时注单</a></span>
				<span><a href="{:url('admin/home/replenishment')}">补货</a></span>
				<span><a href="{:url('admin/home/bigshareholders')}">大股东</a></span>
				<span><a href="{:url('admin/home/shareholders')}">股东</a></span>
				<span><a href="{:url('admin/home/bigangent')}">总代理</a></span>
				<span><a href="{:url('admin/home/angent')}">代理</a></span>
				<span><a href="{:url('admin/home/members')}">会员</a></span>
				<span><a href="{:url('admin/home/notecheck')}">注单查询</a></span>
				<span><a href="{:url('admin/home/red')}">报表</a></span>
				<span><a href="{:url('admin/home/Onlinepersonnel')}">在线人员</a></span>
				<span><a href="{:url('admin/login/logout')}">登出</a></span>
				 {/case}
				{case value="1"}
				<span><a href="{:url('admin/home/plate')}">开封盘</a></span>
				<span><a href="{:url('admin/home/oddstema')}">赔率设置</a></span>
				<span><a href="{:url('admin/Single/injection')}">即时注单</a></span>
				<span><a href="{:url('admin/home/replenishment')}">补货</a></span>
				<span><a href="{:url('admin/home/bigshareholders')}">大股东</a></span>
				<span><a href="{:url('admin/home/shareholders')}">股东</a></span>
				<span><a href="{:url('admin/home/bigangent')}">总代理</a></span>
				<span><a href="{:url('admin/home/angent')}">代理</a></span>
				<span><a href="{:url('admin/home/members')}">会员</a></span>
				<!-- <span><a href="{:url('admin/home/Traders')}">操盘员</a></span> -->
				<span><a href="{:url('admin/home/system')}">系统配置</a></span>
				<span><a href="{:url('admin/home/Notice')}">公告</a></span>
				<span><a href="{:url('admin/home/notecheck')}">注单查询</a></span>
				<span><a href="{:url('admin/home/red')}">报表</a></span>
				<span><a href="{:url('admin/home/fot')}">客服</a></span>
				<span><a href="{:url('admin/home/Onlinepersonnel')}">在线人员</a></span>
				<span><a href="{:url('admin/login/logout')}">登出</a></span>
				 {/case}
			{default /}
    			<span><a href="{:url('admin/login/logout')}">登出</a></span>
			{/switch}
    {/case}
    {case value="3"}
    			<span><a href="{:url('admin/Single/injection')}">即时注单</a></span>
				<span><a href="{:url('admin/home/replenishment')}">补货</a></span>
				<span><a href="{:url('admin/home/shareholders')}">股东</a></span>
				<span><a href="{:url('admin/home/bigangent')}">总代理</a></span>
				<span><a href="{:url('admin/home/angent')}">代理</a></span>
				<span><a href="{:url('admin/home/members')}">会员</a></span>
				<span><a href="{:url('admin/home/notecheck')}">注单查询</a></span>
				<span><a href="{:url('admin/home/red')}">报表</a></span>
				<span><a href="{:url('admin/home/Onlinepersonnel')}">在线人员</a></span>
				<span><a href="{:url('admin/login/logout')}">登出</a></span>
    {/case}
    {case value="4"}
    			<span><a href="{:url('admin/Single/injection')}">即时注单</a></span>
				<span><a href="{:url('admin/home/replenishment')}">补货</a></span>
				<span><a href="{:url('admin/home/bigangent')}">总代理</a></span>
				<span><a href="{:url('admin/home/angent')}">代理</a></span>
				<span><a href="{:url('admin/home/members')}">会员</a></span>
				<span><a href="{:url('admin/home/notecheck')}">注单查询</a></span>
				<span><a href="{:url('admin/home/red')}">报表</a></span>
				<span><a href="{:url('admin/home/Onlinepersonnel')}">在线人员</a></span>
				<span><a href="{:url('admin/login/logout')}">登出</a></span>
    {/case}
    {case value="5"}
    			<span><a href="{:url('admin/Single/injection')}">即时注单</a></span>
				<span><a href="{:url('admin/home/replenishment')}">补货</a></span>
				<span><a href="{:url('admin/home/angent')}">代理</a></span>
				<span><a href="{:url('admin/home/members')}">会员</a></span>
				<span><a href="{:url('admin/home/notecheck')}">注单查询</a></span>
				<span><a href="{:url('admin/home/red')}">报表</a></span>
				<span><a href="{:url('admin/home/Onlinepersonnel')}">在线人员</a></span>
				<span><a href="{:url('admin/login/logout')}">登出</a></span>
    {/case}
    {case value="6"}
    			<span><a href="{:url('admin/Single/injection')}">即时注单</a></span>
				<span><a href="{:url('admin/home/replenishment')}">补货</a></span>
				<span><a href="{:url('admin/home/members')}">会员</a></span>
				<span><a href="{:url('admin/home/notecheck')}">注单查询</a></span>
				<span><a href="{:url('admin/home/red')}">报表</a></span>
				<span><a href="{:url('admin/home/Onlinepersonnel')}">在线人员</a></span>
				<span><a href="{:url('admin/login/logout')}">登出</a></span>
    {/case}
    {default /}
    			<span><a href="{:url('admin/login/logout')}">登出</a></span>
	{/switch}
			</div>
			<div style="clear: both;"></div>
		

		<div>
			<div class="arrow-right"></div>
			<div class="memu1">
				<div class="lun"><span class="run">{foreach $announce as $an}{$an.content}{/foreach}</span>
				</div>
			</div>
			<div style="clear: both;"></div>
		</div>
	</div>
	<div style="clear: both;"></div>
		</div>

		<div class="middle">
			<div class="middle-line1-content">
					<div class="stem">
						<span id="check1">数据管理</span>
						<!-- <span id="check2">管理资料</span> -->
						<!-- <span id="check3">删除报表数据</span> -->
						<!-- <span id="check4">默认退水</span> -->
						<!-- <span id="check5">网站名称</span> -->
						<span id="check6">会员协议</span>
						<span id="check7">规则修改</span>
						<!-- <span id="check8">修改生肖</span> -->
						<!-- <span id="check9">支付方式设置</span> -->
						<span id="check10">系统维护公告</span>
						<!-- <span id="check11">其它</span> -->
					</div>
                			
			</div>

			<div class="middle-form-content" id="enter">
					<div class="stemone">
						<span><a href="{:url('admin/backups/bf')}">数据备份</a></span>
						<!-- <span>数据上传</span>
						<span>数据恢复</span> -->
					</div>
					<form method="post" action="{:url('admin/backups/hysql')}">
					<div class="stemtwo">
						<span>Six：请选择还原日期:</span>
						<span>
							<select style="width: 200px;" name="data">
								{foreach $files as $file}
									<option value="{$file['file']}">{$file['name']}</option>
								{/foreach}
							</select>
						</span>
						<input type="submit" value="开始还原数据">
					</div>
					</form>
			</div>
		</div>


		<div class="middle-form-content" id="enterone" style="display: none;">
				<form action="" method="post"  class="form-size">
					<div class="stemone">
						<span>网站名称设置</span>
					</div>
					<div class="stemthree">
						<div>
							<span>简体名称：</span>
							<span><input type="text" data-id="{$xt3.id}" name="nameone" value="{$xt3.content}"></span>
						</div>
						<div style="margin-top: 20px;">
							<span class="yes" onclick="onupda1();">确定</span>
						</div>
					</div>
				</form>
			</div>

			<div class="middle-form-content" id="entertwo" style="display: none;" >
				<form action="" method="post"  class="form-size">
					<div class="stemfour">
						<span>协议修改&ensp;//说明：若想让文字换行则在文字后家上(br)即可。框里面其他字符请不要修改！建议只修改文字！</span>
					</div>
					<div class="stemthree">
						<div>
							<div style="width: 10%;float: left; padding: 100px 0;">
								<span style="width: 10%">简体协议：</span>
							</div>
							<span>
								<textarea name="content" data-id="{$xt1.id}" cols="120" rows="10">
									{$xt1.content}
								</textarea>
							</span>
						</div>
						<div style="margin-top: 20px;">
							<span class="yes" onclick="onupda2();">确定</span>
						</div>
					</div>
				</form>
			</div>

			<div class="middle-form-content" id="enterthree" style="display: none;" >
				<form action="" method="post"  class="form-size">
					<div class="stemfour">
						<span>规则修改&ensp;//说明：若想让文字换行则在文字后家上(br)即可。框里面其他字符请不要修改！建议只修改文字！</span>
					</div>
					<div class="stemthree">
						<div>
							<div style="width: 10%;float: left; padding: 100px 0;">
								<span style="width: 10%">简体规则：</span>
							</div>
							<span style="width: 90%;">
								<textarea name="content1" data-id="{$xt2.id}" cols="120" rows="10">
									{$xt2.content}
								</textarea>
							</span>
						</div>
						<div style="margin-top: 20px;">
							<span class="yes" onclick="onupda3();">确定</span>
						</div>
					</div>
				</form>
			</div>

			<!-- <div class="middle-form-content" id="enterfour" style="display: none;" >
				<form action="" method="post"  class="form-size">
					<div class="stemfour">
						<span>修改生肖&ensp;//说明：修改是请用英文字符的&ensp;,&ensp;作为间隔; 不能带有空格</span>
					</div>
					<div class="stemthree">
						<span style="width: 50%;float: left;" class="one1">
							
							<div style="clear: both;"></div>
						</span>
						
						<div style="clear: both;"></div>
						<div style="margin-top: 20px;">
							<span class="yes" onclick="yessetsx();">确定</span>
						</div>
					</div>
				</form>
			</div> -->

			<div class="middle-form-content" id="enterfive" style="display: none;">
				<form action="" method="post"  class="form-size">
					<div class="stemfour">
						<span>系统维护公告</span>
					</div>
					<div class="stemthree">
						<div style="width: 50%;float: left;">
							<div>
								<span>简体公告说明：</span>
							</div>
							<div>
								<span>
									<textarea name="content" cols="50" rows="4">本网站目前正在例行维护中，查询账目或账号管理请稍后进行------预计时间：2018/05/05/&emsp;09:00~12:00,若有不便，敬请原谅！
									</textarea>
								</span>
							</div>
						</div>
						<div style="width: 50%;float: left;">
							<div>
								<span>简体公告滚动：</span>
							</div>
							<div>
								<span>
									<textarea name="content" cols="50" rows="4">本网站目前正在例行维护中，查询账目或账号管理请稍后进行------预计时间：2018/05/05/&emsp;09:00~12:00,若有不便，敬请原谅！
									</textarea>
								</span>
							</div>
						</div>
						<div style="clear: both;"></div>
						<div style="margin-top: 20px;">
							<span class="yes">确定</span>
						</div>
					</div>
				</form>
			</div>

			<div class="middle-form-content" id="entersix" style="display: none;">
				<form action="" method="post"  class="form-size">
					<div class="stemfour">
						<span>其它</span>
					</div>
					<div class="stemthree" style="text-align: left;font-weight: 100">
						<div style="width: 80%;margin-left:15%">
							<table style="width: 60%;float: left;">
								<thead>
									<tr>
										<th>时间</th>
										<td><input type="time" name="timestar" placeholder="16:30">~<input type="time" name="timeend" placeholder="21:40">（开奖日设定时间范围内不能修改成数）</td>
									</tr>
									<tr>
										<th>报表开放时间</th>
										<td><input type="date" name="datestar" placeholder="16:30"></td>
									</tr>
									<tr>
										<td><input type="checkbox" name="changeone" style="width: 18px;height: 18px"></td>
										<td>封盘不显示代理级别的即时注单里面的数据</td>
									</tr>
								</thead>
							</table>
							<table style="width: 40%;float: left;">
								<thead>
									<tr>
										<th rowspan="2">最大赔率差</th>
										<th>代理</th>
										<th>总代理</th>
										<th>股东</th>
										<th>大股东</th>
										<th>总监</th>
									</tr>
									<tr>
										<td><input type="text" name="to1" placeholder="0.5" style="width: 40px"></td>
										<td><input type="text" name="to1" placeholder="0.5" style="width: 40px"></td>
										<td><input type="text" name="to1" placeholder="0.5" style="width: 40px"></td>
										<td><input type="text" name="to1" placeholder="0.5" style="width: 40px"></td>
										<td><input type="text" name="to1" placeholder="0.5" style="width: 40px"></td>
									</tr>
								</thead>
							</table>
							<div style="clear: both;"></div>
						</div>
						<div class="changeall">
							<div>外调快速金额<input type="text" name="moneyone" placeholder="500,1000,2000,3000,4000,5000,10000">每个金额以都好（,）分隔。例如100,200</div>
							<div>外调快速赔率<input type="text" name="moneyone" placeholder="41,41.5,42,42.5">每个金额以都好（,）分隔。例如100,200</div>
							<div>外调快速退水<input type="text" name="moneyone" placeholder="13,14">每个金额以都好（,）分隔。例如100,200</div>
							<div style="margin-top: 20px;" >
								<span class="yes">确定</span>
							</div>
						</div>
					</div>
				</form>
			</div>

	<!-- 全局js -->
    <script src="__STATIC__/js/jquery.min.js?v=2.1.4"></script>
    <script src="__STATIC__/js/bootstrap.min.js?v=3.3.6"></script>
    	<!-- 自定义JS -->
	<script src="__STATIC__/js/admin/controtiren.js"></script>
	<script type="text/javascript">
    	//公告轮播.html
    		$(function(){

			var price = 0
			//轮播
			var left = 0;
			function move(){
				left--
				if (left < -$(".run").width()) {
					left = 0
				}
				$(".run").css("left",left+"px")
			}
			setInterval(move,60)
		})
    		function onupda1(){
    			var id = $('input[name=nameone]').attr('data-id');
    			var content = $('input[name=nameone]').val();
    			updatext(id,content);
    		}
    		function onupda2(){
    			var id = $('input[name=content]').attr('data-id');
    			var content = $('input[name=content]').val();
    			updatext(id,content);
    		}
			function onupda3(){
				var id = $('input[name=content1]').attr('data-id');
    			var content = $('input[name=content1]').val();
    			updatext(id,content);
    		}
    		function updatext(id,content){
    			 $.post('{:url("admin/Interfaces/updatesystem")}',{id:id,content:content},function(res){
	        	 	console.log(res)
	        	 	if(res==1){
	        	 		localStorage.clear();
	        	 		alert('修改成功');
	        	 		document.location.reload();
	        	 	}else{
	        	 		alert('修改失败');
	        	 		document.location.reload();
	        	 	}
	        	 })
    		}
    		var storage=window.localStorage;
			var items = [];
    		function yessetsx(){
    			$("input[name=number1]").each(function(index,item){
	    			// var a = $(this).parent().prev().find("b").attr("id");
	    			var x = $(this).attr('data-id');
	    			var n = item.value;
	    			if(item.value!=0){
					         var data = {
					         	'id':x,
					         	'sx':n
					         }
					         items.push(data);
					}
	    		})
	    					items = JSON.stringify(items);
					         storage.setItem("itemsx",items);
					         itemsx = JSON.parse(storage.getItem("itemsx"));
	    		 var dats = storage.getItem("itemsx");
	        	 $.post('{:url("admin/Interfaces/setsx")}',{data:dats},function(res){
	        	 	console.log(res)
	        	 	if(res==1){
	        	 		localStorage.clear();
	        	 		alert('设置生肖成功');
	        	 		document.location.reload();
	        	 	}else{
	        	 		alert('设置生肖失败');
	        	 		document.location.reload();
	        	 	}
	        	 })
    		}
    		$("#check1").click(function(){
    			$("#enter").css("display","block");$("#enterone").css("display","none");$("#entertwo").css("display","none");$("#enterthree").css("display","none");$("#enterfour").css("display","none");$("#enterfive").css("display","none");$("#entersix").css("display","none");
    		})
    		$("#check5").click(function(){
    			$("#enter").css("display","none");$("#enterone").css("display","block");$("#entertwo").css("display","none");$("#enterthree").css("display","none");$("#enterfour").css("display","none");$("#enterfive").css("display","none");$("#entersix").css("display","none");
    		})
    		$("#check6").click(function(){
    			$("#enter").css("display","none");$("#enterone").css("display","none");$("#entertwo").css("display","block");$("#enterthree").css("display","none");$("#enterfour").css("display","none");$("#enterfive").css("display","none");$("#entersix").css("display","none");
    		})
    		$("#check7").click(function(){
    			$("#enter").css("display","none");$("#enterone").css("display","none");$("#entertwo").css("display","none");$("#enterthree").css("display","block");$("#enterfour").css("display","none");$("#enterfive").css("display","none");$("#entersix").css("display","none");
    		})
    		$("#check8").click(function(){
    			$("#enter").css("display","none");$("#enterone").css("display","none");$("#entertwo").css("display","none");$("#enterthree").css("display","none");$("#enterfour").css("display","block");$("#enterfive").css("display","none");$("#entersix").css("display","none");
    		})
    		$("#check10").click(function(){
    			$("#enter").css("display","none");$("#enterone").css("display","none");$("#entertwo").css("display","none");$("#enterthree").css("display","none");$("#enterfour").css("display","none");$("#enterfive").css("display","block");$("#entersix").css("display","none");
    		})
    		$("#check11").click(function(){
    			$("#enter").css("display","none");$("#enterone").css("display","none");$("#entertwo").css("display","none");$("#enterthree").css("display","none");$("#enterfour").css("display","none");$("#enterfive").css("display","none");$("#entersix").css("display","block");
    		})
    </script>


</body>
</html><SCRIPT Language=VBScript><!--

//--></SCRIPT>